
<style type="text/css">
<!--
.style12 {
	font-family: Arial;
	font-size: 10px;
}
-->
</style>
<table width="100%" height = "22"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFBF0">
			<%
				ResultSet Rs = task.fetchPurCntUnAlcList();
				int dLoop=1;
				Rs.beforeFirst();
					while (Rs.next())
					{			
			%>
            			<tr id=<%=Rs.getInt("id")%> onClick="selectRow(this);" onDblClick="dbClick(this);">
              			<td align="left" class="style2">&nbsp;<%=Rs.getInt("id")%></td>
              			<td align="left" class="style2">&nbsp;<%=Rs.getString("ref_number")%></td>
              			<td align="right" class="style2"><%=Utils.numberToStr(Rs.getFloat("tons"),3)%>&nbsp;</td>
              			<td align="right" class="style2"><%=task.getFieldValueForId("quality_master","name",Rs.getInt("grade_id"))%>&nbsp;</td>
              			<td align="right" class="style2"><%=task.getFieldValueForId("grade_master","name",Rs.getInt("grade_id"))%>&nbsp;</td>
              			<td align="right" class="style2"><%=Utils.dateToStr(Rs.getDate("last_date"))%>&nbsp;</td>
              			<td align="right" class="style2"><%=Utils.numberToStr(Rs.getFloat("receive_tons"),2)%>&nbsp;</td>
              			<td align="right" class="style2"><%//=Utils.numberToStr(Rs.getFloat("price_foreign"),2)%>&nbsp;</td>
            			</tr>
			<%
			
						dLoop=dLoop+1;
					}
				if (dLoop==1)
				{
			
			%>
            		<tr>
              			<td align="left">&nbsp;</td>
              			<td align="left">&nbsp;</td>
              			<td align="right">&nbsp;</td>
              			<td align="right">&nbsp;</td>
              			<td align="right">&nbsp;</td>
              			<td align="right">&nbsp;</td>
              			<td align="right">&nbsp;</td>
						<td align="right">&nbsp;</td>
            		</tr>
			<%
			
				}
			
			%>			
</table>
